package org.emmannuel.virtues.client.panel;

import org.emmannuel.virtues.client.common.TOVirtue;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;

public class AdoptVirtueClickHandler implements ClickHandler {

	private TOVirtue virtue = null;
	
	@Override
	public void onClick(ClickEvent event) {
		AdoptingPanel ap = new AdoptingPanel();
		ap.adoptVirtue(virtue);
		
		ap.dialog.center();
	
	}

	/**
	 * @return the virtue
	 */
	public TOVirtue getVirtue() {
		return virtue;
	}

	/**
	 * @param virtue the virtue to set
	 */
	public void setVirtue(TOVirtue virtue) {
		this.virtue = virtue;
	}

	
}
